package com.bijiawang.user.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class ViewConfig implements WebMvcConfigurer {
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/index.html").setViewName("index");
        registry.addViewController("/UserInFo.html").setViewName("UserInFo");
        registry.addViewController("/history.html").setViewName("history");
        registry.addViewController("/Favorites.html").setViewName("Favorites");
        registry.addViewController("/login.html").setViewName("login");
    }
}
